﻿<UserControl x:Class="WAPA.SilverlightClient.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl"
    mc:Ignorable="d"
    d:DesignHeight="900" d:DesignWidth="1280">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch"  Margin="12,0,12,0">
            <TextBox x:Name="Input" KeyDown="Input_KeyDown" GotFocus="Input_GotFocus" Width="200"  Text="type address or poi here" FontSize="13" HorizontalAlignment="Stretch"/>
            <Button Content="Find" Click="Button_Click"/>
            <TextBlock x:Name="Output" FontSize="10" Foreground="Red" Margin="14,0,0,0" VerticalAlignment="Center"/>
        </StackPanel>
        



        <m:Map MousePan="cloudMap_MousePan" x:Name="cloudMap" Grid.Row="1" CopyrightVisibility="Collapsed"  NavigationVisibility="Collapsed" ScaleVisibility="Collapsed" CredentialsProvider="AtuWbF4gomPQOUqcA70WH0gRNkWUpaHEvx3XYPRZK5h37y9EknFeM6MI9hCvRMVW" Mode="Aerial">
            <m:MapLayer x:Name="cloudDataCenterLayer">
            
                <!--<m:MapPolygon Fill="Blue" Stroke="White" StrokeThickness="15" Locations="47.6424,-122.3219 47.8424,-122.1747" Opacity="1"/>-->
            </m:MapLayer>
        </m:Map>

       
               
    </Grid>
</UserControl>
